package com.zlx.mapper;

import com.zlx.entities.Student;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 周罗校
 * @Description
 * @ClassName StudentMapper
 * @date 2020.10.09 11:49:13
 * 该版权归周罗校所有，最终解释权以官方为准
 */
public interface StudentMapper {
    //批量添加
    int addbitchStudent(List<Student> list);
    //批量删除
    int deletebitchStudentById(Integer[] ids);
    //修改学生
    int updateStudent(Student student);

    List<Student> findAllStudent(@Param("name")String name,@Param("start") Integer start,@Param("end") Integer end);
    //关联查询，一对一
    List<Student> getStudentList();

    List<Student> getStudentList2();

    //关联查询多对一
    List<Student> getStudentListMany();

    List<Student> getStudentListMany2();

}
